@home-tab-item-height: 96rpx;

/* 基础样式 */
.container {
  height: 100vh;
  background: #f8f9fb;
  padding-top: env(safe-area-inset-top); /* 新增：顶部安全区 */
}

/* 顶部导航 */
.tabs-header {
  display: flex;
  height: 96rpx;
  background: #fff;
  box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.06);
  position: fixed; /* 改为固定定位 */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding-top: env(safe-area-inset-top); /* 安全区适配 */
}

.tab-item {
  flex: 1;
  text-align: center;
  line-height: 96rpx;
  font-size: 30rpx;
  color: #666;
  position: relative;
  transition: color 0.3s;
}

.tab-item.active {
  color: #2d8cf0;
  font-weight: 500;
}

.tab-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4rpx;
  background: #2d8cf0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-item.active .tab-line {
  width: 80rpx;
  left: calc(50% - 40rpx);
}

/* 调整内容区域 */
.content-scroll {
  height: calc(100vh - env(safe-area-inset-top) - 96rpx); /* 动态高度计算 */
  padding-top: 96rpx; /* 新增：补偿导航栏高度 */
}
.card {
  background: #fff;
  border-radius: 16rpx;
  margin: 24rpx;
  box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.06);
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 360rpx;
  display: block;
}
.card-content {
  padding: 16rpx;
}

.title {
  display: block;
  font-size: 32rpx;
  color: #333;
  margin-bottom: 12rpx;
  font-weight: 500;
}

.desc {
  font-size: 26rpx;
  color: #999;
  line-height: 1.6;
}

/* 加载状态 */
.loading-box {
  padding: 5rpx 0 130rpx 0;
  text-align: center;
  color: #999;
}

.loading-icon {
  width: 40rpx;
  height: 40rpx;
  margin-right: 16rpx;
  vertical-align: middle;
}

.no-more {
  font-size: 26rpx;
  color: #ccc;
}



/* 固定定位容器 */
.fixed-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom); /* 适配安全区 */
}

/* 底部导航样式 */
.bottom-tab {
  height: 96rpx;
  background: #fff;
  box-shadow: 0 -4rpx 8rpx rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
}